package com.itheima.zy;


import java.util.Scanner;

public class Text12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入4位会员卡号：");
        int num = sc.nextInt();
//        int ge = num % 10;
//        int shi = num / 10 % 10;
//        int ba = num / 10 / 10 % 10;
//        int qian = num / 10 / 10 / 10 % 10;
//        int sum = ge + shi + ba + qian;

//        System.out.println("会员卡号：" + num + (sum > 20 ? "是幸运客户" : "不是幸运客户"));
        System.out.println("会员卡号：" + num + "\t" + ((num % 10) + ((num / 10) % 10) + ((num / 100) % 10) + ((num / 1000) % 10) > 20 ? "是幸运客户" : "不是幸运客户"));
    }

}